package bg.btanev.eightyfour.shared.command;

import com.google.gwt.user.client.rpc.IsSerializable;

/**
 *
 * @author B.Tanev
 *
 */
public class CommandAction<CI extends CommandInput, CR extends CommandResult<CI, ?>> implements IsSerializable {
	/**
	 *
	 */
	private static final long serialVersionUID = -6274499504871243870L;

	private CommandInput input;

	public CommandAction() {
	}

	public CommandAction(CI input) {
		this.input = input;
	}

	public void setInput(CI input) {
		this.input = input;
	}

	@SuppressWarnings("unchecked")
	public CI getInput() {
		return (CI) input;
	}

	@Override
	public String toString() {
		return "CommandAction [input=" + input + "]";
	}
}
